package com.qumitech.visualnovel.datasource.console;

import com.qumitech.visualnovel.model.dao.console.KittenFishingTermDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface KittenFishingTermDOMapper {
    int deleteByPrimaryKey(Long id);

    int insert(KittenFishingTermDO record);

    int insertSelective(KittenFishingTermDO record);

    KittenFishingTermDO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(KittenFishingTermDO record);

    int updateByPrimaryKey(KittenFishingTermDO record);

    int getCount(@Param("termId") String termId,
                 @Param("itemType") String itemType,
                 @Param("startTime") String startTime,
                 @Param("endTime") String endTime);

    List<KittenFishingTermDO> getList(@Param("termId") String termId,
                                    @Param("itemType") String itemType,
                                    @Param("startTime") String startTime,
                                    @Param("endTime") String endTime,
                                    @Param("offset") int offset,
                                    @Param("limit") int limit);

    KittenFishingTermDO getTotal(@Param("termId") String termId,
                               @Param("itemType") String itemType,
                               @Param("startTime") String startTime,
                               @Param("endTime") String endTime);
}